﻿using System;

namespace SampleCode.VirtualFS
{
    /// <summary>
    /// Arguments for 'File created' and 'File changed' events
    /// </summary>
    public class FsFileChangedEventArgs : EventArgs
    {
        /// <summary>
        /// A ctor
        /// </summary>
        /// <param name="fileInfo"></param>
        internal FsFileChangedEventArgs(FsFileInfo fileInfo)
        {
            FileInfo = fileInfo;
        }

        /// <summary>
        /// Information about the changed file
        /// </summary>
        public FsFileInfo FileInfo { get; private set; }
    }

    /// <summary>
    /// A delegate for 'File created' and 'File changed' events
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void FsFileChangedEventHandler(object sender, FsFileChangedEventArgs e);
}
